#include <QCoreApplication>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int b,x,y,z;
        cin>>b;
        x=b/100;
        y=(b/10)%10;
        z=b%10;
        b=x*10+y*100+z;
        cout<<b;
    return a.exec();
}
